#include<iostream>

class Date {
public:
    Date(int year = 1, int month = 1, int day = 1)
        : _year(year), _month(month), _day(day) {
        std::cout << "Date(int year, int month, int day)" << std::endl;
    }
    Date(const Date& d)
        : _year(d._year), _month(d._month), _day(d._day) {
        std::cout << "Date(const Date& d)" << std::endl;
    }
    void Print()
    {
      std::cout << _year << _month << _day << std::endl;
    }
private:
    int _year;
    int _month;
    int _day;
};
int main()
{
    auto il = {1,2,3,4};//可以将任意多个相同类型的整数识别成initializer_list类型
    std::cout << typeid(il).name() << std::endl;

    //区别
    auto il = {1,2,3};//{}中可以是任意多个对象
    Date d1 = {2025,1,1};//{}中的1对象个数和类构造的参数有关

    
    return 0;
}